<!DOCTYPE html>
<html>
	<head>
	    <meta charset="UTF-8">
	    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
	    <title>卖家信息</title>
	    <link href="../css/mui.min.css" rel="stylesheet"/>
	    <link rel="stylesheet" type="text/css" href="../css/pullToRefresh.css" />
	    <link rel="stylesheet" type="text/css" href="../fonts/iconfont/iconfont.css"/>
	    <link rel="stylesheet" type="text/css" href="../css/global.css"/>
	    <style type="text/css">
	    	.line2{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2; }
	    	span{text-indent: 2em;}
	    	.aptitude_pic{padding: 7.5px;width: 100%;overflow: hidden;}
	    	.aptitude_pic img{width: calc(90%/4);margin: calc(10%/8);float: left;}	    	
	    </style>
	</head>
	<body ng-app = "app" ng-controller="my_controller">
	    <header class="mui-bar mui-bar-nav bg_white">
	        <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
	        <h1 class="mui-title colorP">卖家信息</h1>
	    </header>
		<div class="mui-content">
			<div></div>
			<ul class="mui-table-view">
		        <li class="mui-table-view-cell bg_white margin-bottom5px">
		            <a class="mui-navigate-right" ng-click="open_honerPage(res.uid,2)">
		                <img ng-src="{{res.u_pic}}" class="circle_pic"/>
						<span class="padding_lr_10px">{{res.name}}</span>
		            </a>
		        </li>
		        <li ng-click="open_salerAptitude(res.uid)" class="mui-table-view-cell bg_white margin-bottom5px" ng-if="res.uid == mySelf_id">
		            <a class="mui-navigate-right">卖家资质</a>
		        </li>
		        <li class="mui-table-view-cell bg_white"><span>卖家商品</span> </li><!--<span class="mui-pull-right">更多</span>-->
		        <li ng-repeat="(index,vo) in all_goods">
		        	<p class="mui-text-center line-height44px" ng-if="vo == null"><i class="iconfont mui-icon">&#xe6e3;</i>该用户还没发布商品</p>
			        <ul class="mui-table-view margin-bottom5px bg_white" ng-repeat="(index,val) in vo">
			        	<li class="paddingl_r_15px_tb11px bg_white border-bottom">
			               <div class="user_pic"><img ng-src="{{val.user_icon}}" /></div>
							<span class="padding_l  line-height30px font14">{{val.user_nick}} </span>
							<p class="mui-pull-right line-height30px font12">{{val.time}}</p>
			            </li>
			            <li class="mui-table-view-cell mui-media" ng-click="open_goodsDetail(val.id,val.type,val.uid)">
			                <a href="javascript:;">
			                    <img class="mui-media-object mui-pull-left"  ng-src="{{val.good_image}}">
			                    <div class="mui-media-body">
			                     	<div class="margin-bottom10px line2 font12">{{val.good_name}}</div>
			                     	<span class="mui-pull-right colorRed font12">￥{{val.price}}</span>
			                    </div>
			                </a>
			            </li>          
			        </ul>
			        <p class="mui-text-center line-height44px" ng-if="not_more == 1">没有更多数据~~~</p>
			        <p ng-if="val.length >= 10" class="mui-text-center line-height44px bg_white colorP">查看更多</p>
		        </li>		        
			</ul>
		</div>
	</body>
	<script src="../js/mui.min.js"></script>
	<script src="../js/mui.pullToRefresh.js"></script>
	<script src="../js/mui.pullToRefresh.material.js"></script>
	<script src="../js/open.js"></script>
	<script src="../js/jquery.min.js"></script>
	<script src="../js/angular.js"></script>
	<script src="../js/apppublic.js"></script>
	<script src="../js/app/saller_info.js"></script> 
	<script type="text/javascript">
		(function($) {
			//阻尼系数
			var deceleration = mui.os.ios ? 0.003 : 0.0009;
			$('.mui-scroll-wrapper').scroll({
				bounce: false,
				indicators: false, //是否显示滚动条
				deceleration: deceleration
			});
			$.ready(function() {
				//循环初始化所有下拉刷新，上拉加载。
				$.each(document.querySelectorAll('.mui-content'), function(index, pullRefreshEl) {
					$(pullRefreshEl).pullToRefresh({
						down:{
							callback: function() {
								var self = this;
								setTimeout(function() {
									loadNews();
									self.endPullDownToRefresh();
								}, 1000);
							}
						},
						up: {
							callback: function() {
								var self = this;
								getValue();
								setTimeout(function() {
									self.endPullUpToRefresh();
								}, 1000);
							}
						}
					});
				});
			});
		})(mui);
		function loadNews() {
			appElement = document.querySelector('[ng-controller=my_controller]');
			$scope = angular.element(appElement).scope();
			resArry = [];
			cur_page = 1;
			$scope.not_more = 0;
			nomore = false;
			$scope.intview();  
			$scope.$apply();
		}
		function getValue() {
			appElement = document.querySelector('[ng-controller=my_controller]');
			$scope = angular.element(appElement).scope();
			$scope.intview();
			$scope.$apply();
		}
	</script>
</html>